package com.hfh.main.course.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hfh.main.course.entity.CourseListEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 */
@Mapper
public interface CourseListMapper extends BaseMapper<CourseListEntity> {

    Page<CourseListEntity> selectPage(Page<CourseListEntity> page, @Param("ew") Wrapper<CourseListEntity> queryWrapper);
    Page<CourseListEntity> selectCustomPage(Page<CourseListEntity> page, @Param("ew") Wrapper<CourseListEntity> queryWrapper);

    Long selectCount(@Param("ew") Wrapper<CourseListEntity> queryWrapper);

    void updateTeacherNull(Integer groupId);
}
